<template>
   <v-table
       :hasEdit="false"
       :searchFlag="false"
       :pageSize="pageSize"
       :page="page"
       :tableConfig="tableConfig"
       :tableData="tableData"
       :total="total"
       @findData="getTableData"
       @getTableData="getTableData"
       @searhData="searhData"
       @selectData="selectData"
       @upData="getTableData"
       ref="table"
   ></v-table>
</template>

<script>
import table from "commons/Table";

export default {
   name: "",
   data() {
      return {
         tableConfig: [
            {
               label: this.$t('out.no'),
               prop: "seqno",
               input: "input",
            },
            {
               label: this.$t('out.excellinenumber'),
               prop: "excellinenumber",
               input: "input",
            },
            {
               label: this.$t('out.data30'),
               prop: "data30",
               input: "input",
            },
         ],
         tableData: [],
         pageSize: 10,
         page: 1,
         total: 10,
      }
   },
   methods: {
      selectData(data) {
         this.tableSelectData = data;
      },
      async getTableData(page, data) {
         /* try {
             this.loading = true;
             let res = await this.$api.post(`/queryAltskuList/${page}`, data);
             
                this.tableData = res.page.list;
                this.page = res.page.curpage;
                this.pageSize = res.page.pageSize;
                this.total = res.page.total;
             } else {
                this.$message.error(res.returnMgr);
             }
          } catch (e) {
             this.$message.error(error);
          } finally {
             this.loading = false;
          }*/
      },
      //搜索的值
      searhData(data, up) {
         if (!up) {
            this.tableSearhData = data;
         } else {
            this.tableSearhData = data;
            this.getTableData(1, this.tableSearhData);
         }
      },
   },
   mounted() {

   },
   components: {
      "v-table": table
   }
}
</script>

<style scoped>

</style>
